package com.cv.platform.dal.dataobject.message;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 消息未读统计表 DO
 *
 * @author Charles_XDXD
 */
@TableName(value = "cv_message_unread_count", autoResultMap = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class CvMessageUnreadCountDO {

    /**
     * 未读编号
     */
    @TableId
    private Long id;

    /**
     * 用户编号，关联 system_users
     */
    private Long userId;

    /**
     * 会话编号，关联 cv_conversation
     */
    private Long conversationId;

    /**
     * 未读消息个数
     */
    private Integer unreadCount;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

}